var infos = window.location.search

var info1 = infos.substring(infos.indexOf("?") + 1 , infos.length)

var orderinfo = info1.substring(info1.indexOf("=")+1 , info1.length)

var uid = getCookie("userid")

//console.log(uid)

$("#orderno").val(orderinfo)
$.getJSON("http://localhost:8080/selectByOrderId?userId=" + uid,function (data) {
    for(let i=0 ; i<data.length ;i++){
       if(orderinfo == data[i].orderNo){
           $("#goodname").val(data[i].goodName)
       }
    }
    //console.log(data)
})

function subscribeBtn() {
    alert("订阅成功！")
}


